import * as types from '../mutation-type'

const state = {
    filterCondition: {
        userName: '',
        name: '',
        code: '',
        type: '',
        status: ''
    }
}

const getters = {
  filterCondition: () => state.filterCondition,
}

const mutations = {
  [types.SETFilter] (state, params) {
    state.filterCondition = params
  }
}

export default {
  state, mutations, getters
}
